# @Author  : haomh
# @Time    : 2025-10-22 17:04
# @Function:

"""
if条件:
    条件成立执行的代码1
    条件成立执行的代码2
"""

# if True:
#     print("1")
#     print("2")
# print("我会一直执行")

# while循环

# 循环计数器
i = 0
while i < 5:
    print("啊啊啊啊啊啊")
    i += 1
print('结束')

# break：结束整个循环
j = 1
while j <= 5:
    if j >= 4:
        print("无库存")
        break
    print(f'用了{j}个')
    j += 1
# continue：结束本次循环
k = 1
while k <= 10:
    if k == 3:
        print(f'第{k}个坏了')
        k += 1
        continue
    print(f'用了{k}个')
    k += 1
